package org.lq.shopping.entity;

import java.io.Serializable;

public class ShopExpress implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	private int express_id;//快递编号
	private  String express_name;//快递名称
	private  String express_phone;//快递电话
	private int express_cost;//快递费用
	private int order_id;//订单号
	private String express_type;//快递类型
	private String express_remark;//备注
	public int getExpress_id() {
		return express_id;
	}
	public void setExpress_id(int express_id) {
		this.express_id = express_id;
	}
	public String getExpress_name() {
		return express_name;
	}
	public void setExpress_name(String express_name) {
		this.express_name = express_name;
	}
	public String getExpress_phone() {
		return express_phone;
	}
	public void setExpress_phone(String express_phone) {
		this.express_phone = express_phone;
	}
	public int getExpress_cost() {
		return express_cost;
	}
	public void setExpress_cost(int express_cost) {
		this.express_cost = express_cost;
	}
	public int getOrder_id() {
		return order_id;
	}
	public void setOrder_id(int order_id) {
		this.order_id = order_id;
	}
	public String getExpress_type() {
		return express_type;
	}
	public void setExpress_type(String express_type) {
		this.express_type = express_type;
	}
	public String getExpress_remark() {
		return express_remark;
	}
	public void setExpress_remark(String express_remark) {
		this.express_remark = express_remark;
	}
	
	@Override
	public String toString() {
		return "ShopExpress [express_id=" + express_id + ", express_name=" + express_name + ", express_phone="
				+ express_phone + ", express_cost=" + express_cost + ", order_id=" + order_id + ", express_type="
				+ express_type + ", express_remark=" + express_remark + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + express_cost;
		result = prime * result + express_id;
		result = prime * result + ((express_name == null) ? 0 : express_name.hashCode());
		result = prime * result + ((express_phone == null) ? 0 : express_phone.hashCode());
		result = prime * result + ((express_remark == null) ? 0 : express_remark.hashCode());
		result = prime * result + ((express_type == null) ? 0 : express_type.hashCode());
		result = prime * result + order_id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopExpress other = (ShopExpress) obj;
		if (express_cost != other.express_cost)
			return false;
		if (express_id != other.express_id)
			return false;
		if (express_name == null) {
			if (other.express_name != null)
				return false;
		} else if (!express_name.equals(other.express_name))
			return false;
		if (express_phone == null) {
			if (other.express_phone != null)
				return false;
		} else if (!express_phone.equals(other.express_phone))
			return false;
		if (express_remark == null) {
			if (other.express_remark != null)
				return false;
		} else if (!express_remark.equals(other.express_remark))
			return false;
		if (express_type == null) {
			if (other.express_type != null)
				return false;
		} else if (!express_type.equals(other.express_type))
			return false;
		if (order_id != other.order_id)
			return false;
		return true;
	}
	
	
	

}
